﻿<Page
    x:Class="WellDone.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:CustomControls="using:WellDone" 
    mc:Ignorable="d" Loaded="Page_Loaded">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid Width="390" Height="420">
            <Image x:Name="imgLogo" HorizontalAlignment="Left" Height="300" Margin="35,-27,0,0" VerticalAlignment="Top" Width="300" Source="Assets/Square150x150Logo.scale-100.jpg" DoubleTapped="imgLogo_DoubleTapped"/>
            <TextBlock x:Name="tblkOpenRPOS" Visibility="Collapsed" HorizontalAlignment="Left" Margin="100,204,0,0" TextWrapping="Wrap" Text="OpenRPOS" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="30"/>
            <TextBlock x:Name="tblkUsername" HorizontalAlignment="Left" Margin="5,253,0,0" TextWrapping="Wrap" Text="Username" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16" Visibility="Collapsed" />
            <TextBox x:Name="tbUsername"  HorizontalAlignment="Left" Margin="81,244,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="253" FontFamily="Segoe UI Light" SelectionHighlightColor="#FF2AB7E0" Visibility="Collapsed"/>
            <TextBlock x:Name="tblkPassword" HorizontalAlignment="Left" Margin="10,291,0,0" TextWrapping="Wrap" Text="Password" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16" Visibility="Collapsed"/>
            <PasswordBox x:Name="pbPassword" HorizontalAlignment="Left" Margin="81,281,0,0" VerticalAlignment="Top" Width="253" SelectionHighlightColor="#FF2AB7E0" KeyDown="pbPassword_KeyDown" Visibility="Collapsed"/>
            <TextBlock x:Name="tblkPin" HorizontalAlignment="Left" Margin="50,253,0,0" TextWrapping="Wrap" Text="PIN" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16" Visibility="Collapsed"/>
            <PasswordBox x:Name="pbPin" HorizontalAlignment="Left" Margin="81,244,0,0" VerticalAlignment="Top" Width="253" SelectionHighlightColor="#FF2AB7E0" FontFamily="Segoe UI Light" KeyDown="pbPin_KeyDown" MaxLength="4"  GotFocus="pbPin_GotFocus" PasswordChanged="pbPin_Changed" Visibility="Collapsed"/>
            <TextBlock x:Name="tblkErrorMessage" HorizontalAlignment="Center" Margin="0,318,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16" Foreground="Red" />
            <Button x:Name="btnLogin" Content="Login" HorizontalAlignment="Left" Margin="90,347,0,0" VerticalAlignment="Top" Click="btnLogin_Click" Height="70" Width="95" FontSize="20" Visibility="Collapsed"/>
            <Button x:Name="btnTimeClock" Content="Time Clock" Height="70" Width="140" FontSize="20" Margin="185,344,0,0" Visibility="Collapsed" Click="btnTimeClock_Click"/>
            <Button x:Name="btnUserLogin" Content="Login by Username" HorizontalAlignment="Left" Margin="344,240,-159,0" VerticalAlignment="Top" Height="41" FontSize="20"  Click="btnUserLogin_Click" Visibility="Collapsed"/>
            <Button x:Name="btnLoginPIN" Content="Login by PIN" HorizontalAlignment="Left" Margin="344,240,-159,0" VerticalAlignment="Top" Height="41" Width="155" FontSize="20"  Click="btnLoginPIN_Click" Visibility="Collapsed"/>
            <CheckBox x:Name="chkTimeClock" Content="Time Clock" HorizontalAlignment="Center" Margin="0,180,0,0" Checked="chkTimeClock_Checked" Visibility="Collapsed"></CheckBox>
        </Grid>
        <ProgressRing x:Name="prWait" IsActive="False" Width="50" Height="50" Foreground="#FF98DEF8"/>
        <CustomControls:KeyPadControl  Margin="580,450,0,0" x:Name="NumericKeyPadControl" KeyPadMode="Standard" ButtonClick="KeyPadControl_Click" Visibility="Collapsed"></CustomControls:KeyPadControl>
<!--        
        <HyperlinkButton x:Name="hbAccount" Content="Create Account" HorizontalAlignment="Center"  Margin="0,0,0,50" VerticalAlignment="Bottom" FontSize="30" NavigateUri="http://openrpos.com/contact.html" Visibility="Collapsed"/>
-->
        <Grid x:Name="gridLinks" HorizontalAlignment="Center">
            <HyperlinkButton x:Name="hbForgotPassword" Content="Forgot Password" HorizontalAlignment="Left"  Margin="10,0,0,60" VerticalAlignment="Bottom" FontSize="30" NavigateUri="https://secure.welldonepos.co/WellDoneRegistration/Account/ForgotPassword" Visibility="Visible"/>
            <HyperlinkButton x:Name="hbCreateAccount" Content="Create Account" HorizontalAlignment="Left"  Margin="270,0,0,60" VerticalAlignment="Bottom" FontSize="30" NavigateUri="https://secure.welldonepos.co/WellDoneRegistration/Account/Register" Visibility="Visible"/>
            <HyperlinkButton x:Name="hbAcceptCreditCards" Content="Accept Credit Cards" HorizontalAlignment="Left"  Margin="510,0,0,60" VerticalAlignment="Bottom" FontSize="30" NavigateUri="https://secure.welldonepos.co/WellDoneRegistration/Account/CreditCards" Visibility="Visible"/>
            <HyperlinkButton x:Name="hbDocumentation" Content="Documentation" HorizontalAlignment="Left"  Margin="150,0,0,20" VerticalAlignment="Bottom" FontSize="30" NavigateUri="https://secure.welldonepos.co/Documentation" Visibility="Visible"/>
            <HyperlinkButton x:Name="hbDownloads" Content="Downloads" HorizontalAlignment="Left"  Margin="400,0,0,20" VerticalAlignment="Bottom" FontSize="30" NavigateUri="https://secure.welldonepos.co/Downloads" Visibility="Visible"/>
        </Grid>
    </Grid>
</Page>
